package tw.cuttle;

import java.util.HashMap;
import java.util.Map;


public class ActionContext {
    private ThreadLocal<ActionHelper> actionHelper;
    private ThreadLocal<Long> accessTime=new ThreadLocal<Long>();
    private Map<String, String> executedProcesses=new HashMap<String, String>();
    /**
     * @return the executedProcesses
     */
    public Map<String, String> getExecutedProcesses() {
        return executedProcesses;
    }
    /**
     * @param executedProcesses the executedProcesses to set
     */
    public void setExecutedProcesses(Map<String, String> executedProcesses) {
        this.executedProcesses = executedProcesses;
    }
    public Long getAccessTime(){
	return accessTime.get();
    }
    public void setAccessTime(Long accessTime){
	this.accessTime.set(accessTime);
    }
    /**
     * @return the actionHelper
     */
    public ActionHelper getActionHelper() {
        return actionHelper.get();
    }

    /**
     * @param actionHelper the actionHelper to set
     */
    public void setActionHelper(ActionHelper actionHelper) {
	if(this.actionHelper==null)this.actionHelper=new ThreadLocal<ActionHelper>();
        this.actionHelper.set(actionHelper);
    }
}
